package com.ai.mall.service.impl;

import com.ai.mall.dao.ProductDetailImagesDao;
import com.ai.mall.entity.ProductDetailImagesEntity;
import com.ai.mall.service.ProductDetailImagesService;
import com.ai.mall.utils.PageUtils;
import com.ai.mall.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("productDetailImagesService")
public class ProductDetailImagesServiceImpl extends ServiceImpl<ProductDetailImagesDao, ProductDetailImagesEntity> implements ProductDetailImagesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductDetailImagesEntity> page = this.page(
                new Query<ProductDetailImagesEntity>().getPage(params),
                new QueryWrapper<ProductDetailImagesEntity>()
        );

        return new PageUtils(page);
    }

}